<!DOCTYPE html>
<html>

        <meta charset="UTF-8">
        <script src="./js/app.js"></script>
        
        <form data-abide id="maker_form" >
          <div style="position: fixed;right: 20px;top:10px;width: 100px;height: 50px;line-height: 50px;text-align: center;background-color: #ddd;border-radius: 15px;">
            <a href="index.html" style="list-style: none;color: black;text-decoration: none;">返回首页</a>
        </div>
                <fieldset>
                  <legend>Edit User Information</legend>
                <div class="row">
                  <div class="large-12 columns">
                    <label>Email Address:
                        <input id="emailaddress_id" name="emailaddress" required type="varchar" />
                    </label>
                    <small class="error">An Email Address is Required</small>
                  </div>
                </div>
                <div class="row">
                  <div class="large-12 columns">
                    <label>Password
                        <input id="password_id" name="password" required type="varchar" />
                    </label>
                    <small class="error">A password is Required</small>
                  </div>
                </div>
                <div class="row">
                  <div class="large-12 columns">
                 
                    </label>
                  </div>
                </div>
                <div class="row">
                  <div class="large-12 columns">
                    <!-- <button type="button">Continue</button> -->
                    <button type="button" id="submit">Save</a>
                  </div>
                </div>
                </fieldset>
              </form>
              <script src="./api/axios.min.js"></script>
              <script src="./api/publicinfo.js"></script>
              <script src="./js/jquery.js"></script>
              <script src="./api/utils.js"></script>
              <script>
                $("#submit").click(function(){
                  let data = {};
                  let value = $('#maker_form').serializeArray();
                  $.each(value, function (index, item) {
                              data[item.name] = item.value;
                          });
                  data.id = getLocalStorage("userData").data.userInfo.login_id
                  post("/updateUser",data).then(res=>{
                      alert("修改成功！")
                    })
                })
               
              
              </script>

</html>